//
//  LKManagerSubordinateListCellCell.m
//  Mideleague_Agent
//
//  Created by Zhiwang on 2020/6/19.
//  Copyright © 2020 Zhiwang. All rights reserved.
//

#import "LKManagerSubordinateListCellCell.h"

@interface LKManagerSubordinateListCellCell()
@property (weak, nonatomic) IBOutlet UILabel *agentLabel;
@property (weak, nonatomic) IBOutlet UILabel *statuLabel;
@property (weak, nonatomic) IBOutlet UILabel *accountLabel;
@property (weak, nonatomic) IBOutlet UILabel *agentLevelLabel;
@property (weak, nonatomic) IBOutlet UILabel *upAgentLabel;

@property (weak, nonatomic) IBOutlet UILabel *upAgentLevelLabel;



@end


@implementation LKManagerSubordinateListCellCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setListModel:(LKMySuboridateOpenListModel *)listModel{
    _listModel = listModel;
    self.agentLabel.text = _listModel.agent_name;
    self.statuLabel.text = _listModel.status_name;
    self.accountLabel.text = [NSString stringWithFormat:@"用户账号：%@",_listModel.user_phone];
    self.agentLevelLabel.text = [NSString stringWithFormat:@"级别：%@",_listModel.type_name];
    self.upAgentLabel.text = [NSString stringWithFormat:@"上级代理：%@",_listModel.parent_name];
    self.upAgentLevelLabel.text = [NSString stringWithFormat:@"级别：%@",_listModel.parent_type];
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
